Kernel: Python 3 (ipykernel)
In [1]:
In [2]:
(array([[65, 82, 40, 57, 43, 63, 70, 74, 71, 4, 9, 80, 44, 72, 37],
[87, 63, 92, 90, 72, 21, 91, 13, 59, 43, 56, 58, 5, 83, 51],
[28, 31, 19, 15, 14, 4, 94, 68, 38, 70, 18, 69, 56, 58, 59],
[64, 87, 53, 91, 74, 51, 10, 42, 91, 61, 83, 51, 59, 56, 18],
[23, 49, 87, 24, 47, 21, 39, 6, 31, 19, 11, 67, 65, 73, 87],
[97, 50, 63, 92, 91, 62, 52, 78, 68, 83, 99, 87, 12, 27, 90],
[79, 47, 56, 86, 71, 39, 74, 25, 27, 85, 71, 19, 33, 99, 25],
[21, 28, 96, 53, 49, 71, 89, 11, 76, 68, 49, 73, 72, 30, 74],
[13, 75, 59, 10, 6, 26, 77, 13, 76, 72, 29, 44, 89, 37, 82],
[38, 82, 86, 31, 1, 64, 38, 75, 73, 37, 53, 64, 94, 51, 85],
[20, 46, 14, 47, 23, 68, 26, 90, 11, 42, 67, 96, 13, 24, 3],
[37, 43, 41, 15, 74, 85, 16, 59, 41, 84, 91, 64, 8, 78, 80],
[66, 66, 36, 70, 81, 72, 81, 75, 96, 5, 65, 52, 36, 23, 43]]),
array([9., 1., 1., 1., 1., 2., 1., 1., 1., 3., 1., 3., 1.]),
array([ 9., 3., 2., 2., 8., 6., 3., 12., 4., 2., 2., 7., 2.,
2., 3.]))
In [3]:
2 Set Declarations
x_index : Size=1, Index=None, Ordered=Insertion
Key : Dimen : Domain : Size : Members
None : 1 : Any : 15 : {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}
не_меньше_index : Size=1, Index=None, Ordered=Insertion
Key : Dimen : Domain : Size : Members
None : 1 : Any : 13 : {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
1 Var Declarations
x : Size=15, Index=x_index
Key : Lower : Value : Upper : Fixed : Stale : Domain
0 : 0 : None : 1 : False : True : Binary
1 : 0 : None : 1 : False : True : Binary
2 : 0 : None : 1 : False : True : Binary
3 : 0 : None : 1 : False : True : Binary
4 : 0 : None : 1 : False : True : Binary
5 : 0 : None : 1 : False : True : Binary
6 : 0 : None : 1 : False : True : Binary
7 : 0 : None : 1 : False : True : Binary
8 : 0 : None : 1 : False : True : Binary
9 : 0 : None : 1 : False : True : Binary
10 : 0 : None : 1 : False : True : Binary
11 : 0 : None : 1 : False : True : Binary
12 : 0 : None : 1 : False : True : Binary
13 : 0 : None : 1 : False : True : Binary
14 : 0 : None : 1 : False : True : Binary
1 Objective Declarations
obj : Size=1, Index=None, Active=True
Key : Active : Sense : Expression
None : True : minimize : 9.0*x[0] + 3.0*x[1] + 2.0*x[2] + 2.0*x[3] + 8.0*x[4] + 6.0*x[5] + 3.0*x[6] + 12.0*x[7] + 4.0*x[8] + 2.0*x[9] + 2.0*x[10] + 7.0*x[11] + 2.0*x[12] + 2.0*x[13] + 3.0*x[14]
1 Constraint Declarations
не_меньше : Size=13, Index=не_меньше_index, Active=True
Key : Lower : Body : Upper : Active
0 : 9.0 : 65*x[0] + 82*x[1] + 40*x[2] + 57*x[3] + 43*x[4] + 63*x[5] + 70*x[6] + 74*x[7] + 71*x[8] + 4*x[9] + 9*x[10] + 80*x[11] + 44*x[12] + 72*x[13] + 37*x[14] : +Inf : True
1 : 1.0 : 87*x[0] + 63*x[1] + 92*x[2] + 90*x[3] + 72*x[4] + 21*x[5] + 91*x[6] + 13*x[7] + 59*x[8] + 43*x[9] + 56*x[10] + 58*x[11] + 5*x[12] + 83*x[13] + 51*x[14] : +Inf : True
2 : 1.0 : 28*x[0] + 31*x[1] + 19*x[2] + 15*x[3] + 14*x[4] + 4*x[5] + 94*x[6] + 68*x[7] + 38*x[8] + 70*x[9] + 18*x[10] + 69*x[11] + 56*x[12] + 58*x[13] + 59*x[14] : +Inf : True
3 : 1.0 : 64*x[0] + 87*x[1] + 53*x[2] + 91*x[3] + 74*x[4] + 51*x[5] + 10*x[6] + 42*x[7] + 91*x[8] + 61*x[9] + 83*x[10] + 51*x[11] + 59*x[12] + 56*x[13] + 18*x[14] : +Inf : True
4 : 1.0 : 23*x[0] + 49*x[1] + 87*x[2] + 24*x[3] + 47*x[4] + 21*x[5] + 39*x[6] + 6*x[7] + 31*x[8] + 19*x[9] + 11*x[10] + 67*x[11] + 65*x[12] + 73*x[13] + 87*x[14] : +Inf : True
5 : 2.0 : 97*x[0] + 50*x[1] + 63*x[2] + 92*x[3] + 91*x[4] + 62*x[5] + 52*x[6] + 78*x[7] + 68*x[8] + 83*x[9] + 99*x[10] + 87*x[11] + 12*x[12] + 27*x[13] + 90*x[14] : +Inf : True
6 : 1.0 : 79*x[0] + 47*x[1] + 56*x[2] + 86*x[3] + 71*x[4] + 39*x[5] + 74*x[6] + 25*x[7] + 27*x[8] + 85*x[9] + 71*x[10] + 19*x[11] + 33*x[12] + 99*x[13] + 25*x[14] : +Inf : True
7 : 1.0 : 21*x[0] + 28*x[1] + 96*x[2] + 53*x[3] + 49*x[4] + 71*x[5] + 89*x[6] + 11*x[7] + 76*x[8] + 68*x[9] + 49*x[10] + 73*x[11] + 72*x[12] + 30*x[13] + 74*x[14] : +Inf : True
8 : 1.0 : 13*x[0] + 75*x[1] + 59*x[2] + 10*x[3] + 6*x[4] + 26*x[5] + 77*x[6] + 13*x[7] + 76*x[8] + 72*x[9] + 29*x[10] + 44*x[11] + 89*x[12] + 37*x[13] + 82*x[14] : +Inf : True
9 : 3.0 : 38*x[0] + 82*x[1] + 86*x[2] + 31*x[3] + x[4] + 64*x[5] + 38*x[6] + 75*x[7] + 73*x[8] + 37*x[9] + 53*x[10] + 64*x[11] + 94*x[12] + 51*x[13] + 85*x[14] : +Inf : True
10 : 1.0 : 20*x[0] + 46*x[1] + 14*x[2] + 47*x[3] + 23*x[4] + 68*x[5] + 26*x[6] + 90*x[7] + 11*x[8] + 42*x[9] + 67*x[10] + 96*x[11] + 13*x[12] + 24*x[13] + 3*x[14] : +Inf : True
11 : 3.0 : 37*x[0] + 43*x[1] + 41*x[2] + 15*x[3] + 74*x[4] + 85*x[5] + 16*x[6] + 59*x[7] + 41*x[8] + 84*x[9] + 91*x[10] + 64*x[11] + 8*x[12] + 78*x[13] + 80*x[14] : +Inf : True
12 : 1.0 : 66*x[0] + 66*x[1] + 36*x[2] + 70*x[3] + 81*x[4] + 72*x[5] + 81*x[6] + 75*x[7] + 96*x[8] + 5*x[9] + 65*x[10] + 52*x[11] + 36*x[12] + 23*x[13] + 43*x[14] : +Inf : True
5 Declarations: x_index x obj не_меньше_index не_меньше
In [4]:
In [5]:
# ==========================================================
# = Solver Results =
# ==========================================================
# ----------------------------------------------------------
# Problem Information
# ----------------------------------------------------------
Problem:
- Name: unknown
Lower bound: 2.0
Upper bound: 2.0
Number of objectives: 1
Number of constraints: 13
Number of variables: 15
Number of binary variables: 15
Number of integer variables: 15
Number of nonzeros: 15
Sense: minimize
# ----------------------------------------------------------
# Solver Information
# ----------------------------------------------------------
Solver:
- Status: ok
User time: -1.0
System time: 0.0
Wallclock time: 0.01
Termination condition: optimal
Termination message: Model was solved to optimality (subject to tolerances), and an optimal solution is available.
Statistics:
Branch and bound:
Number of bounded subproblems: 0
Number of created subproblems: 0
Black box:
Number of iterations: 0
Error rc: 0
Time: 0.0643320083618164
# ----------------------------------------------------------
# Solution Information
# ----------------------------------------------------------
Solution:
- number of solutions: 0
number of solutions displayed: 0
x[12] 1.0
In [ ]: